package com.bfl.dubbo.provider;

import com.alibaba.dubbo.config.annotation.Service;
import com.bfl.dubbo.entity.User;
import com.bfl.dubbo.service.UserService;
import org.springframework.stereotype.Component;


@Service
@Component("userService")
public class UserServiceImpl implements UserService {

    @Override
    public User saveUser(User user) {
        user.setId(1);
        System.out.println(user.toString());
        return user;
    }

}
